package com.gtxc.kotlinmvvm.adapater;

import android.util.Log;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.gtxc.kotlinmvvm.R;
import com.gtxc.kotlinmvvm.bean.ViewItemBean;

import org.jetbrains.annotations.NotNull;

/**
 * FileName:MyFenSiAdapater
 * Author：Administrator
 * Date:2021 2021/9/28 20:09
 * Copyright (C), 2020-2021,成都拇音科技有限公司
 * <p>
 * <p>
 * Description: zwl
 * History:
 * <author> <time> <version> <desc>
 * 作者姓名 修改时间 版本号 描述
 */
public class MyFenSiAdapater extends BaseQuickAdapter<ViewItemBean,BaseViewHolder> {
    public MyFenSiAdapater(int layoutResId) {
        super(layoutResId);

    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, ViewItemBean s) {
         baseViewHolder.setText(R.id.textView4,s.getTitlis());
        baseViewHolder.setText(R.id.textView5,s.getFlis());

        if (baseViewHolder.getPosition()==0){
            Log.i("dededed", "convert: dd"+baseViewHolder.getAdapterPosition());
            baseViewHolder.setVisible(R.id.imageView4,true);
        }

    }
}
